
package usyd.comp5348;

import java.util.Collection;
import javax.ejb.Remote;


/**
 * This is the business interface for StockFacade enterprise bean.
 */
@Remote
public interface StockFacadeRemote {
    int createItem(Stock stock);
    
    void modifyItem(Stock stock) throws StockException;
    
    void deleteItem(int id);
    
    int sold(int catalogueId, int quantity, String warehouse) throws StockException;
    
    
    int bought(int catalogueId, int quantity, String warehouse) throws StockException;
    
    
    Stock getItemById(int id);
    
    Collection<Stock> getItemByWarehouse(String warehouse);
    
    
    int getHoldingByWarehouse(int catalogueId, String warehouse) throws StockException;
    
    
    
}
